import requests from '@/utils/request';

// 查询
export const reqGetDepartmentList = (params) =>
  requests.post('/admin/department/query', params);

// 增加
export const reqBatchAddDepartment = (params) =>
  requests.post('/admin/department/add', params);

// 编辑
export const reqEidtDepartment = (params) =>
  requests.put('/admin/department/edit', params);

// 删除
export const reqBatchDelDepartment = (params) =>
  requests.post('/admin/department/remove', params);

// 查询院系编号与名称集合
export const reqGetDepartmentListForIdAndName = () =>
  requests.get('/admin/department/queryForIdAndName');

// 检查是否重名
export const reqCheckDepartmentNameIsRepeat = (params) =>
  requests.get(`/admin/department/queryForCheckRepeatName/${params}`);
